import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const DicUrl = baseUrl + '/dic/read/dic';
export const DeptUrl = baseUrl + '/dept/read/dic';
export const RoleUrl = baseUrl + '/role/read/dic';
export const UnitDicUrl = baseUrl + '/unit/read/dic';

export const readSystemDicByPage = (param) => request({
    url: baseUrl + '/dic/read/page',
    method: 'post',
    data:param
});

export const addSystemDic = (data) => request({
    url: baseUrl + '/dic/save',
    method: 'post',
    data:data
})

export const editSystemDic = (data) => request({
    url: baseUrl + '/dic/save',
    method: 'post',
    data:data
})

export const delSystemDic = (id) => request({
    url: baseUrl + '/dic/delete',
    method: 'post',
    data: { id: id }
})
